<?php

require_once 'Zend/Controller/Action.php';

class Zendx_Controller_Action extends Zend_Controller_Action {
	public $rootUrl		= "";
	public $fileDir		= "";
	public $dirDir		= "";
	/**
	 * (non-PHPdoc)
	 * @see Zend_Controller_Action::init()
	 */
    public function init() {
    	$this->rootUrl	= 'http://'. $_SERVER['HTTP_HOST'] ;
    	$this->fileDir	= dirname(__FILE__);
    	$this->dirDir	= dirname(__DIR__);
    }
    public function getBaseUrl() {
    	return $this->_request->getbaseurl();
    }
}